package com.cn.xiaonuo.slbfinances.slbreward.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("sl_prize")
public class SlPrize implements Serializable {
    /**
     * 奖品ID
     */
    @TableId(type = IdType.AUTO)
    private Integer prizeId;

    /**
     * 奖品等级
     */
    private String prizeGrade;

    /**
     * 奖品名称
     */
    private String prizeName;

    /**
     * 奖品（剩余）数量
     */
    private Double prizeAmount;

    /**
     * 奖品权重
     */
    private Integer prizeWeight;

    private static final long serialVersionUID = 1L;

    /**
     * 获取奖品ID
     *
     * @return prize_id - 奖品ID
     */
    public Integer getPrizeId() {
        return prizeId;
    }

    /**
     * 设置奖品ID
     *
     * @param prizeId 奖品ID
     */
    public void setPrizeId(Integer prizeId) {
        this.prizeId = prizeId;
    }

    /**
     * 获取奖品等级
     *
     * @return prize_grade - 奖品等级
     */
    public String getPrizeGrade() {
        return prizeGrade;
    }

    /**
     * 设置奖品等级
     *
     * @param prizeGrade 奖品等级
     */
    public void setPrizeGrade(String prizeGrade) {
        this.prizeGrade = prizeGrade == null ? null : prizeGrade.trim();
    }

    /**
     * 获取奖品名称
     *
     * @return prize_name - 奖品名称
     */
    public String getPrizeName() {
        return prizeName;
    }

    /**
     * 设置奖品名称
     *
     * @param prizeName 奖品名称
     */
    public void setPrizeName(String prizeName) {
        this.prizeName = prizeName == null ? null : prizeName.trim();
    }

    /**
     * 获取奖品（剩余）数量
     *
     * @return prize_amount - 奖品（剩余）数量
     */
    public Double getPrizeAmount() {
        return prizeAmount;
    }

    /**
     * 设置奖品（剩余）数量
     *
     * @param prizeAmount 奖品（剩余）数量
     */
    public void setPrizeAmount(Double prizeAmount) {
        this.prizeAmount = prizeAmount;
    }

    /**
     * 获取奖品权重
     *
     * @return prize_weight - 奖品权重
     */
    public Integer getPrizeWeight() {
        return prizeWeight;
    }

    /**
     * 设置奖品权重
     *
     * @param prizeWeight 奖品权重
     */
    public void setPrizeWeight(Integer prizeWeight) {
        this.prizeWeight = prizeWeight;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", prizeId=").append(prizeId);
        sb.append(", prizeGrade=").append(prizeGrade);
        sb.append(", prizeName=").append(prizeName);
        sb.append(", prizeAmount=").append(prizeAmount);
        sb.append(", prizeWeight=").append(prizeWeight);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}